import request from '@/utils/request'

/**
 * 采止线数据项说明分页查询
 * @param {查询条件} data
 */
export function listProStopLine(query) {
  return request({
    url: 'business/line/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增采止线数据项说明
 * @param data
 */
export function addProStopLine(data) {
  return request({
    url: 'business/line',
    method: 'post',
    data: data,
  })
}
/**
 * 修改采止线数据项说明
 * @param data
 */
export function updateProStopLine(data) {
  return request({
    url: 'business/line',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取采止线数据项说明详情
 * @param {Id}
 */
export function getProStopLine(id) {
  return request({
    url: 'business/line/' + id,
    method: 'get'
  })
}

/**
 * 删除采止线数据项说明
 * @param {主键} pid
 */
export function delProStopLine(pid) {
  return request({
    url: 'business/line/delete/' + pid,
    method: 'delete'
  })
}
//获取图层  getLayer 
export function getLayer(){
  return request({
    url: 'business/line/getLayer',
    method: 'get'
  })
}
